<?php

declare(strict_types=1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

class UserCompany extends Model
{
    use SoftDelete;

    protected $name = 'user_company';

    protected $autoWriteTimestamp = 'datetime';

    protected $json = ['extra', 'ocr_raw'];

    protected $jsonAssoc = true;

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
